package com.wxb.service.impl;

import com.wxb.domain.MallCategoryEntity;
import com.wxb.mapper.MallCategoryMapper;
import com.wxb.service.IMallCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Date 2025-05-30 10:55
 * @Version 1.0
 * @Description
 * @ClassName MallCategoryServiceImpl
 **/
@Service
public class MallCategoryServiceImpl implements IMallCategoryService {
    @Autowired
    private MallCategoryMapper categoryDao;


    public MallCategoryEntity queryObject(Integer id){
        return categoryDao.queryObject(id);
    }


    public List<MallCategoryEntity> queryList(Map<String, Object> map){
        return categoryDao.queryList(map);
    }


    public int queryTotal(Map<String, Object> map){
        return categoryDao.queryTotal(map);
    }


    public void save(MallCategoryEntity category){
        categoryDao.save(category);
    }


    public void update(MallCategoryEntity category){
        categoryDao.update(category);
    }


    public void delete(Integer id){
        categoryDao.delete(id);
    }


    public void deleteBatch(Integer[] ids){
        categoryDao.deleteBatch(ids);
    }
}
